package com.itheima.hf.dubbo.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.hf.dubbo.api.HelloApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Version: V1.0
 */
@RestController
public class HelloController {

    @Reference
    HelloApi helloApi;

    @GetMapping("sayHello")
    public String sayHello(String username) {
       return helloApi.sayHello(username);
    }

}
